from flask_restful import reqparse

from api.api import ElasticSearchQueryResource


class WeiboKOLMatchResource(ElasticSearchQueryResource):
    pass


class WeiboKOLMatchMiniResource(ElasticSearchQueryResource):
    pass


class WeiboKOLMatchMXResource(ElasticSearchQueryResource):
    pass


class WeiboKOLInfoResource(ElasticSearchQueryResource):
    pass


class WeiboBrandKOLMatchResource(ElasticSearchQueryResource):
    pass


class WeiboPostSearchResource(ElasticSearchQueryResource):
    pass


class WeiboCategoriesResource(ElasticSearchQueryResource):
    pass


class WeiboTagsResource(ElasticSearchQueryResource):
    pass


class WeiboContentTypeTagsResource(ElasticSearchQueryResource):
    pass


class WeiboDataOverviewResource(ElasticSearchQueryResource):
    pass


class WeiboTrendAnalyzeResource(ElasticSearchQueryResource):
    pass


class WeiboTimeSlotAnalyzeResource(ElasticSearchQueryResource):
    pass


class WeiboContentAnalyzeResource(ElasticSearchQueryResource):
    pass


class WeiboInfluenceResource(ElasticSearchQueryResource):
    pass


class WeiboContentAnalyzeAllResource(ElasticSearchQueryResource):
    pass


class WeiboTrendInfluenceAllResource(ElasticSearchQueryResource):
    pass


class WeiboTimeSlotAnalyzeAllResource(ElasticSearchQueryResource):
    pass


class WeiboPostSearchMXResource(ElasticSearchQueryResource):
    pass


class WeiboPostSearchMiniResource(ElasticSearchQueryResource):
    pass


class WeiboPostInfoResource(ElasticSearchQueryResource):
    pass


class WeiboTopicSearchResource(ElasticSearchQueryResource):
    pass


class WeiboPubStatMultiResource(ElasticSearchQueryResource):
    pass


class WeiboUserPubStatMultiResource(ElasticSearchQueryResource):
    pass


class WeiboUserInfoAnalysisResource(ElasticSearchQueryResource):
    pass


class WeiboCommuAanlysisMultiResource(ElasticSearchQueryResource):
    pass


class WeiboPopularUserResource(ElasticSearchQueryResource):
    pass


weibo_kol_match_parser = reqparse.RequestParser()
weibo_kol_match_parser.add_argument('youka_id', type=str, location='json')
weibo_kol_match_parser.add_argument('brand', type=str, location='json')
weibo_kol_match_parser.add_argument('user_id', type=str, location='json')
weibo_kol_match_parser.add_argument('user_ids', type=list, location='json')
weibo_kol_match_parser.add_argument('term', type=str, location='json')
weibo_kol_match_parser.add_argument('order_by', type=str, location='json')
weibo_kol_match_parser.add_argument('from', type=int, location='json')
weibo_kol_match_parser.add_argument('size', type=int, location='json')
weibo_kol_match_parser.add_argument('filters', type=dict, location='json')
weibo_kol_match_parser.add_argument('highlight', type=bool, location='json')
weibo_kol_match_parser.add_argument('backend', type=bool, location='json')
weibo_kol_match_parser.add_argument('filter_keywords', type=list, location='json')

weibo_post_match_parser = reqparse.RequestParser()
weibo_post_match_parser.add_argument('youka_id', type=str, location='json')
weibo_post_match_parser.add_argument('user_id', type=str, location='json')
weibo_post_match_parser.add_argument('term', type=str, location='json')
weibo_post_match_parser.add_argument('order_by', type=str, location='json')
weibo_post_match_parser.add_argument('from', type=int, location=['args', 'json'])
weibo_post_match_parser.add_argument('size', type=int, location=['args', 'json'])
weibo_post_match_parser.add_argument('filters', type=dict, location='json')
weibo_post_match_parser.add_argument('highlight', type=bool, location='json')
weibo_post_match_parser.add_argument('ids', type=list, location='json')

weibo_data_analyze_parser = reqparse.RequestParser()
weibo_data_analyze_parser.add_argument('youka_id', type=str, location='json')
weibo_data_analyze_parser.add_argument('user_id', type=str, location='json')
weibo_data_analyze_parser.add_argument('user_ids', type=list, location='json')
weibo_data_analyze_parser.add_argument('from', type=str, location='json')
weibo_data_analyze_parser.add_argument('to', type=str, location='json')
weibo_data_analyze_parser.add_argument('filters', type=dict, location='json')
weibo_data_analyze_parser.add_argument('time_slot_type', type=str, location='json')
weibo_data_analyze_parser.add_argument('by_field', type=str, location='json')
weibo_data_analyze_parser.add_argument('by', type=list, location='json')

weibo_kol_match_mini_parser = reqparse.RequestParser()
weibo_kol_match_mini_parser.add_argument('youka_id', type=str, location='json')
weibo_kol_match_mini_parser.add_argument('term', type=str, location='json')
weibo_kol_match_mini_parser.add_argument('order_by', type=str, location='json')
weibo_kol_match_mini_parser.add_argument('from', type=int, location='json')
weibo_kol_match_mini_parser.add_argument('size', type=int, location='json')
weibo_kol_match_mini_parser.add_argument('filters', type=dict, location='json')
weibo_kol_match_mini_parser.add_argument('highlight', type=bool, location='json')

weibo_kol_match_mx_parser = reqparse.RequestParser()
weibo_kol_match_mx_parser.add_argument('youka_id', type=str, location='json')
weibo_kol_match_mx_parser.add_argument('term', type=str, location='json')
weibo_kol_match_mx_parser.add_argument('order_by', type=str, location='json')
weibo_kol_match_mx_parser.add_argument('from', type=int, location='json')
weibo_kol_match_mx_parser.add_argument('size', type=int, location='json')
weibo_kol_match_mx_parser.add_argument('filters', type=dict, location='json')
weibo_kol_match_mx_parser.add_argument('highlight', type=bool, location='json')

weibo_post_match_mini_parser = reqparse.RequestParser()
weibo_post_match_mini_parser.add_argument('youka_id', type=str, location='json')
weibo_post_match_mini_parser.add_argument('term', type=str, location='json')
weibo_post_match_mini_parser.add_argument('order_by', type=str, location='json')
weibo_post_match_mini_parser.add_argument('from', type=int, location=['args', 'json'])
weibo_post_match_mini_parser.add_argument('size', type=int, location=['args', 'json'])
weibo_post_match_mini_parser.add_argument('filters', type=dict, location='json')
weibo_post_match_mini_parser.add_argument('highlight', type=bool, location='json')

weibo_post_match_mx_parser = reqparse.RequestParser()
weibo_post_match_mx_parser.add_argument('youka_id', type=str, location='json')
weibo_post_match_mx_parser.add_argument('term', type=str, location='json')
weibo_post_match_mx_parser.add_argument('order_by', type=str, location='json')
weibo_post_match_mx_parser.add_argument('from', type=int, location=['args', 'json'])
weibo_post_match_mx_parser.add_argument('size', type=int, location=['args', 'json'])
weibo_post_match_mx_parser.add_argument('filters', type=dict, location='json')
weibo_post_match_mx_parser.add_argument('highlight', type=bool, location='json')
weibo_post_match_mx_parser.add_argument('wordcloud', type=bool, location='json')

weibo_post_info_parser = reqparse.RequestParser()
weibo_post_info_parser.add_argument('youka_id', type=str, location='json')
weibo_post_info_parser.add_argument('weibo_ids', type=list, location='json')

weibo_topic_search_parser = reqparse.RequestParser()
weibo_topic_search_parser.add_argument('youka_id', type=str, location='json')
weibo_topic_search_parser.add_argument('term', type=str, location='json')
weibo_topic_search_parser.add_argument('from', type=int, location='json')
weibo_topic_search_parser.add_argument('size', type=int, location='json')
weibo_topic_search_parser.add_argument('filters', type=dict, location='json')

pub_stat_parser = reqparse.RequestParser()
pub_stat_parser.add_argument('youka_id', type=str, location='json')
pub_stat_parser.add_argument('word', type=str, location='json')
pub_stat_parser.add_argument('field', type=str, location='json')
pub_stat_parser.add_argument('keywords', type=list, location='json')
pub_stat_parser.add_argument('filters', type=dict, location='json')
pub_stat_parser.add_argument('from_date', type=str, location='json')
pub_stat_parser.add_argument('to_date', type=str, location='json')

id_parser = reqparse.RequestParser()
id_parser.add_argument('youka_id', type=str, location='args')
id_parser.add_argument('id', type=str, location='args')
